package org.example.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Pub;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author scs
 * @since 2025-03-05
 */
@Mapper
public interface PubMapper extends BaseMapper<Pub> {
    List<Pub> selectListById(@Param("areaId") Integer areaId);

    List<Pub> selectListByBrand(@Param("area") Integer area,@Param("brand") String brand);
    
    List<Pub> selectList(@Param("area") Integer area,@Param("brand") String brand,@Param("rank") String rank);


    Pub selectPubById(@Param("pubId") Integer pubId, @Param("uid") Integer uid);

    List<Pub> getPubRoomByPubId(@Param("pubId") Integer pubId);


}
